from django.urls import path
from rest_framework import routers

from .views import RunResultViewSets, SuiteViewSets, static_serve

# 创建完序列化器之后需要注册到路由上
router = routers.SimpleRouter()
router.register("run_result", RunResultViewSets)
router.register("suite", SuiteViewSets)

urlpatterns = [
    path("static/<path:path>", static_serve, {"document_root": "suite_cases"}),
]

urlpatterns += router.urls
